package LinkedList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 21626
 * Date: 2024-10-26
 * Time: 20:40
 */
public class Test5 {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
/*        myLinkedList.addFirst(12);
        myLinkedList.addFirst(23);
        myLinkedList.addFirst(34);
        myLinkedList.addFirst(45);
        myLinkedList.display();*/
        myLinkedList.addLast(12);
        myLinkedList.addLast(12);
        myLinkedList.addLast(34);
        myLinkedList.addLast(12);
        myLinkedList.display();

        myLinkedList.addIndex(1,22);
        myLinkedList.display();
        /*myLinkedList.removeAllKey(12);
        myLinkedList.display();*/
        myLinkedList.clear();
    }
}
